{extends file="$templateDir/layout/member/layout.tpl"}
{block name=body}
  <div class="container">
      <div class="member_title">
          <div class="member_title_left">优惠券列表</div>
          <div class="member_title_right"></div>
      </div>
      <div class="member_edit">
          <table>
            {if count($data)>0}
            {foreach from=$data item=coupon key=index}
              <tr class="table_th">
                  <td class="goodsname">标题</td>
                  <td class="goodsname">面值</td>
                  <td class="goodsname">券码</td>
                  <td class="total">开始时间</td>
                  <td class="time">结束时间</td>
              </tr>
              <tr class="table_td">
                  <td class="goodsname">{$coupon->batch_name}</td>
                  <td class="goodsname">{$coupon->amount}</td>
                  <td class="goodsname">{$coupon->coupon_pwd}</td>
                  <td class="total">{$coupon->time}</td>
                  <td class="time">{$coupon->exp_date}</td>
              </tr>
            {/foreach}
            {else}
              <tr>
                  <td>
                  无记录....
                  </td>
              </tr>
            {/if}
          </table>
      </div>
  </div>
{/block}
